//
//  HeroData.h
//  FruitCrush
//
//  Created by wuliqing on 15/8/12.
//
//

#ifndef __FruitCrush__HeroData__
#define __FruitCrush__HeroData__

#include "cocos2d.h"

USING_NS_CC;

#define HEROS_DATA_TYPE_KEY  "HerosDataTypeKey"

typedef enum {
	HerosDataType1,
	HerosDataType2,
} HerosDataType;

typedef enum {
	HealthValueType = 0,
	SwordValueType,
	FireValueType,
	ArrowValueType,
	LightValueType
} HeroPropertyType;

#define ATTACK_BASE   5
#define ATTACK_CEAL   2
#define HEALTH_BASE   60
#define HEALTH_CEAL	  5
#define GLOD_CEAL     100
#define HIGH_OFFSET	  30
#define BUTTON_WIDTH 135
#define BUTTON_HEIGHT 50
class HeroData : public Ref
{
public:
    HeroData();
    ~HeroData();
    virtual bool init();
    int getHeroPropertyByType(int type);

    CC_SYNTHESIZE(int, healthValue, HealthValue);
    CC_SYNTHESIZE(int, swordValue, SwordValue);
    CC_SYNTHESIZE(int, fireValue, FireValue);
    CC_SYNTHESIZE(int, arrowValue, ArrowValue);
    CC_SYNTHESIZE(int, lightValue, LightValue);

    CC_SYNTHESIZE(int, healthLevelValue, HealthLevelValue);
    CC_SYNTHESIZE(int, swordLevelValue, SwordLevelValue);
    CC_SYNTHESIZE(int, fireLevelValue, FireLevelValue);
    CC_SYNTHESIZE(int, arrowLevelValue, ArrowLevelValue);
    CC_SYNTHESIZE(int, lightLevelValue, LightLevelValue);

    CC_SYNTHESIZE(int, healthGlodValue, HealthGlodValue);
    CC_SYNTHESIZE(int, swordGlodValue, SwordGlodValue);
    CC_SYNTHESIZE(int, fireGlodValue, FireGlodValue);
    CC_SYNTHESIZE(int, arrowGlodValue, ArrowGlodValue);
    CC_SYNTHESIZE(int, lightGlodValue, LightGlodValue);

};

#endif /* defined(__FruitCrush__HeroUsed__) */
